package com.xg.service;

import com.xg.common.response.TokenResponse;
import com.xg.common.result.ApiResult;
import com.xg.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author li
 * @since 2023-04-05
 */
public interface UserService extends IService<User> {
    

    User queryUserByName(String username);
    void register(User user);

    ApiResult<TokenResponse> checkVerificationCode(String userPhone, String username,String verificationCode);


    String queryUserPhone(String userPhone);

    String queryUserEmail(String userEmail);
}
